using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Icodeon.Util;

namespace Icodeon.Scorm2CC.GUI
{
    public partial class WelcomeDialog : Form
    {
        public WelcomeDialog()
        {
            InitializeComponent();
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            this.Dispose();
        }

        public CheckBox getShowOnStartUpCheckBox()
        {
            return this.showOnStartUpCheckBox;
        }

        private void showOnStartUpCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            if (showOnStartUpCheckBox.Checked)
            {
                IOUtils.WriteSetting("showWelcomeDialogOnStartUp", "true");
            }
            else
            {
                IOUtils.WriteSetting("showWelcomeDialogOnStartUp", "false");
            }
        }

    }
}